package _12excel;

import com.alibaba.excel.EasyExcel;
import com.alibaba.fastjson.JSON;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: wang zhen
 * @create: 2023-04-26 13:00
 */
public class EsaylExcelMain {

    public static void main(String[] args) {
//        File file=new File("C:\\Users\\test\\Desktop\\BearingData\\train_all\\故障\\擦伤\\内圈擦伤\\内圈擦伤_轻度\\2019年09月25日17时45分24秒data节点D318B134地址10.csv");
//
//        List data=new ArrayList();
//        EasyExcel.read(file, BearAlgoExcelVO.class, new BearAlgoExcelListener(data)).sheet().doRead();
//        System.out.println(JSON.toJSONString(data));


//        File file=new File("C:\\Users\\test\\Desktop\\BrakingData\\train\\制动\\空载\\120阀滑阀3制动空载\\制动_120阀作用不良_20190906163025_80_制动_空载.csv");
//
//        List data=new ArrayList();
//        EasyExcel.read(file, BreakAlgoExcelVO.class, new BreakAlgoExcelListener(data)).sheet().doRead();
//        System.out.println(JSON.toJSONString(data));
        String name="aa";
        String[] split = name.split("\\.");
        if(split.length==0){
            System.out.println("no");
        }
        if(!split[split.length-1].equals("csv")){
            System.out.println("no");
        }
        System.out.println("yes");

    }

}
